#include "utilities\Files.h"

#include <cstdio>
#include <boost/filesystem.hpp>

namespace fs = boost::filesystem;

namespace util
{
	std::vector< std::string > GetFileListing( const std::string& dirname )
	{
		std::vector< std::string > files;

		if ( fs::exists( dirname ) == false )
		{
			return files;
		}

		for ( fs::directory_iterator it( dirname ); it != fs::directory_iterator(); ++it )
		{
			files.push_back( it->path().filename().generic_string() );
		}

		return files;
	}
}
